package gxb.test14;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class LuckyDraw {
    public static void main(String[] args) {
        List<Integer> prizes = new ArrayList<>();
        prizes.add(2588);
        prizes.add(888);
        prizes.add(1000);
        prizes.add(10000);
        prizes.add(2);

        Collections.shuffle(prizes); // 随机打乱奖项顺序

        for (int prize : prizes) {
            if (prize == 888) {
                System.out.println("888元的奖金被抽出");
            } else if (prize == 588) {
                System.out.println("588元的奖金被抽出");
            } else if (prize == 1000) {
                System.out.println("1000元的奖金被抽出");
            } else if (prize == 10000) {
                System.out.println("10000元的奖金被抽出");
            } else if (prize == 2) {
                System.out.println("2元的奖金被抽出");
            }
        }
    }
}